{{- $destination := .Destination -}}
{{- with dict "Path" $destination | partial "function/resource.html" -}}
  {{- $destination = .RelPermalink -}}
{{- end -}}
{{- $options := dict "Destination" $destination "Title" .Title "Content" .Text "ExternalIcon" .Page.Site.Params.externalIcon -}}
{{- partial "plugin/link.html" $options -}}
